package collection.set;

import java.util.HashSet;
import java.util.Iterator;
import java.util.List;

public class Test4 {
    public static void main(String[] args) {
        HashSet<String> set = new HashSet<>(List.of("江西刘德华", "芜湖大司马","广东王一博","江西刘德华"));
        // System.out.println(set);
        Iterator<String> it = set.iterator();
        while (it.hasNext()) {
            System.out.println(it.next());
        }
        System.out.println("==============================");
        for (String s : set) {
            System.out.println(s);
        }
        System.out.println("=============================");
        set.forEach(System.out::println);

        System.out.println(Integer.toBinaryString(Integer.MAX_VALUE ));
        System.out.println(Integer.toBinaryString(Integer.MAX_VALUE + 1));
        System.out.println(Integer.MAX_VALUE * 2);
        System.out.println(Integer.MIN_VALUE);

    }
}
